/*************************************************************************
	> File Name: oj-141_hourglass_of_alphabet.c
	> Author: Wang Bo
	> Mail: 1276106221@qq.com
	> Created Time: 2020年10月19日 星期一 00时48分00秒
 ************************************************************************/

#include <stdio.h>
#include <stdlib.h>

int main() {
    int n;
    char ch = 'A';
    scanf("%d", &n);
    char *string = (char *)malloc(sizeof(char) * (2 * n + 1));
    for (int i = 0; i < n + 1; ++i) {
        string[i] = ch++;
    }
    ch--;
    for (int i = n + 1; i < 2 * n + 1; ++i) {
        string[i] = --ch;
    }
    for (int i = 0; i < n + 1; ++i) {
        for (int j = 0; j < i; ++j) {
            printf(" ");
        }
        for (int k = i; k < 2 * n + 1 - i; ++k) {
            printf("%c", string[k]);
        }
        printf("\n");
    }
    for (int i = n; i > 0; --i) {
        for (int j = i - 1; j > 0; --j) {
            printf(" ");
        }
        for (int k = i - 1; k < 2 * n + 2 - i; k++) {
            printf("%c", string[k]);
        }
        printf("\n");
    }
    free(string);
    return 0;
}
